var templateMap = require('./templates');


module.exports = {
  compile: function(name, data) {
    var compiled =  templateMap.compiled(name, data);
    compiled = compiled.replace(/[ | ]*\n/g,'\n'); //去除行尾空白
    compiled = compiled.replace(/\n\n/g,'\n'); //去除多余空行
    return compiled;
  },
}
